<template>
  <div class="flow-row">
    <div class="flow-box">
      <div class="flow-item flow-node-branch">
        <div class="flow-branch-suggest" style="display: none;">
          <div class="node-name">
            <EditName v-model:value="node.name" style="width: 90%"/>
            <!--            <img :src="parallelIcon" style="margin-left: 10px;" />-->
          </div>
          <!--  <div class="close-icon"><a-icon type="close-circle" @click.stop="!read && delNode(node)" /></div> -->
        </div>
      </div>
      <!-- 如果子节点是意见分支,则只能添加一个意见分支 -->
      <FlowAddNode :node="node" @update:node="node = $event" :nodeType="node.type" :readable="readable"/>
    </div>
    <FlowApproverSetting ref="flowApproverSetting" @close="isActive = false"/>
  </div>
</template>
<script setup name="FlowPolymerizeNode">
// import { flowMixin } from '../../mixins/flowMixin';
import {} from '../../../mixins/flowhook'
import FlowAddNode from '../flowAddNode.vue';
// import FlowApproverSetting from '../../FlowDrawer/Approver/index.vue';
import EditName from '../../../common/EditName.vue';
import {createApp, defineProps} from 'vue';

defineProps({
  node: {
    type: Object,
    default: function () {
      return {};
    },
  },
  readable: {
    type: Boolean,
    default: false,
  },
})
</script>
